import Vue from 'vue'
import svgIcon from '../../components/svgIcon' // svg组件
// 注册为全局组件
Vue.component('svg-icon', svgIcon)
const requireAll = requireContext => requireContext.keys().map(requireContext)
const req = require.context('./', false, /\.svg$/)
requireAll(req)
